<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            font-size: 30px;
            color: #fff;
        }
        
        .d1 {
            background-color: red;
            transform: skewX(30deg);
        }
        
        .d2 {
            background-color: yellowgreen;
            transform: skewY(-30deg);
        }
        
        .d3 {
            background-color: rgb(41, 231, 231);
            transform: skewX(30deg);
        }
        
        .d4 {
            background-color: rgb(197, 58, 186);
            transform: skewY(-30deg);
        }
        /* 没有给轴  默认是X轴 */
        
        .d5 {
            background-color: rgb(197, 58, 186);
            transform: skew(30deg);
        }
        
        .d6 {
            background-color: rgb(197, 58, 186);
            transform: translateX(200px) rotate(60deg);
        }
        /* 没有给轴  默认是X轴 */
        
        .d7 {
            background-color: rgb(197, 58, 186);
            transform: rotate(60deg) translateX(200px);
        }
    </style>
</head>

<body>
    <!-- skew扭曲 -->
    <div class="d1">周大帅哥</div>
    <div class="d2">涛桑</div>
    <div class="d3">亮桑</div>
    <div class="d4">东桑</div>
    <div class="d5">凤儿</div>
    <br>
    <hr>
    <div class="d6">东桑</div>
    <div class="d7">凤儿</div>
</body>

</html>